fumble around aimlessly

Translations
бестолково возиться
He didn't know what to do and just fumbled around aimlessly.
Он не знал, что делать, и просто бестолково возился.